﻿#ifndef __SS_TERRAIN10_MATERIAL_H__
#define __SS_TERRAIN10_MATERIAL_H__
#include "ssTextureMaterial.h"
#include "../../texture/ssTexture2D.h"


namespace StarSeeker
{

class ssTerrain10Material : public ssTextureMaterial
{
public:
	ssTerrain10Material();
	~ssTerrain10Material();
	//设置尺寸
	void Init(ssShader* ps, ssfloat baseHeightVal, ssfloat heightScale, ssfloat XLength, ssfloat YLength);
protected:
	void BindTexture2DShaderUniform();
	void OnRenderBegin();

private:
	ssfloat				m_baseHeightVal;	//高度基值
	ssfloat				m_heightScale;		//高度缩放
	ssfloat				m_XLength;			//方向总长度
	ssfloat				m_YLength;			//方向总长度

	ssShaderUniform		m_hBaseHeightVal;	//一致变量高度基值
	ssShaderUniform		m_hHeightScale;		//一致变量高度缩放
	ssShaderUniform		m_hWidth;			//一致变量总宽度
	ssShaderUniform		m_hHeight;			//一致变量总高度
};

}
#endif
